﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TopVisionVideoStream.Models
{
    public class VideoConfMemberInfo
    {
        /// <summary>
        /// 
        /// </summary>
        public string zwannumber { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string membertype { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string memberstatus { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string entertime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string exittime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string retrytimes { get; set; }

        public override int GetHashCode()
        {
            return this.zwannumber.GetHashCode();
        }

        public override bool Equals(object obj)
        {
            if (obj == null) return false;
            VideoConfMemberInfo vcmi = obj as VideoConfMemberInfo;
            if (vcmi == null) return false;
            return this.zwannumber == vcmi.zwannumber;
        }

        //public static bool operator ==(VideoConfMemberInfo info1, VideoConfMemberInfo info2)
        //{
        //    if (info1 == null & info2 == null) return true;
        //    if (info1 == null || info2 == null) return false;
        //    return info1.zwannumber == info2.zwannumber;
        //}

        //public static bool operator !=(VideoConfMemberInfo info1, VideoConfMemberInfo info2)
        //{
        //    if (info1 == null || info2 == null) return false;
        //    return info1.zwannumber != info2.zwannumber;
        //}
    }
}
